﻿@{ 
    Style.Require("EDBSmoothStreaming");
    Script.Require("ThumbnailChanger").AtFoot();
    Orchard.ContentManagement.ContentItem contentItem = Model.ContentItem;
    TimeSpan duration = new TimeSpan(Model.Model.Duration);
    string durationLabel = String.Empty;
    if (duration.Hours > 0) {
        durationLabel = duration.Hours.ToString("#0:"); 
    }       
    durationLabel += duration.Minutes.ToString(duration.Hours > 0 ? "00:" : "0:") + duration.Seconds.ToString("00");
}
<a href="@Url.ItemDisplayUrl(contentItem)" class="VideoThumbnail">
    <img class="VideoThumbnail-@contentItem.Id thumbchange" src="@Model.Model.VideoFolderPath/ss-1.@Model.Model.ThumbnailFormat.ToString().ToLower()" alt="" data-count="@Model.Model.ThumbnailCount" />
    <span>@durationLabel</span>
</a>